import {messages} from "share/common";
import React, {Component} from 'react';
import Info from "components/info";
import InvoiceTypeRule from "../../tax-code/invoice-type/invoice-type-rule";

class BlackWhiteInvoiceTypeRule extends Component {
  infoData = {
    attributes: [{
      title: '',
      dataIndex: 'explain',
      span: 24,
      widthFix: false,
      colon: false
    }],
    dataSource: {
      explain: messages('expense-14.key534')/*对需要设置的发票类型规则进行启用/禁用*/
    }
  };

  render() {
    return (
      <div>
        <Info
          paragraph
          dataSource={this.infoData.dataSource}
          attributes={this.infoData.attributes}
        />
        <div style={{ marginTop: 20 }}>
          <InvoiceTypeRule
            location={{}}
            ruleId={this.props.ruleId}
          />
        </div>
      </div>
    );
  }
}

export default BlackWhiteInvoiceTypeRule;
